package com.m3958.firstgwt.server.service;

import java.io.IOException;
import java.io.Writer;

import javax.servlet.http.HttpServletResponse;

import com.google.inject.Inject;
import com.google.inject.servlet.RequestScoped;

@RequestScoped
public class FourOFourService {
	
	@Inject
	private HttpServletResponse res;
	
	public void send404() throws IOException{
		res.setContentType("text/html; charset=UTF-8");   
		res.setCharacterEncoding("UTF-8");
		res.setStatus(HttpServletResponse.SC_NOT_FOUND);
		Writer w = res.getWriter();
		w.write("404.请求的文件不存在！奉化市诗篇网络科技有限公司,jianglibo@gmail.com");
		w.close();
	}
}


